<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>Title</title>

    <link rel="shortcut icon" href="favicon.ico"/> <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet"/>
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet"/>

    <!-- Data Tables -->
    <link href="css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet"/>

    <link href="css/animate.css" rel="stylesheet"/>
    <link href="css/style.css?v=4.1.0" rel="stylesheet"/>
</head>
<body>
<div class="panel panel-default">
    <div class="panel-heading"><h3>退货信息</h3></div>
    <div class="panel-body" style="background-color: #92B8B1">
        <table>
            <tr>
                <td>用户昵称:<th th:text="${refund.wl_user.nickname}"/></td>
                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td>退货订单编号:<th th:text="${refund.refundorderno}"/></td>
            </tr>
            <tr>
                <td>商品名称:<th th:text="${refund.wl_commodity.commodityname}"/></td>
                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td>商品属性:<th th:text="${refund.wl_commodity.property}"/></td>
            </tr>
            <tr>
                <td>退货数量:<th th:text="${refund.refundcount}"/></td>
                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td>退款金额:<th th:text="${refund.refundmoney}"/></td>
            </tr>
            <tr>
                <td>退款类型:
                <td th:if="${refund.paystatus==0}"  th:text="全额退款"></td>
                <td th:if="${refund.paystatus==1}"  th:text="部分退款"></td>
                </td>
            </tr>
            <tr>
                <td>退货原因:
                <td th:if="${refund.refundreason==1}"  th:text="不喜欢"></td>
                <td th:if="${refund.refundreason==2}"  th:text="商品有色差"></td>
                <td th:if="${refund.refundreason==3}"  th:text="与描述不符"></td>
                <td th:if="${refund.refundreason==4}"  th:text="商品质量问题"></td>
                <td th:if="${refund.refundreason==5}"  th:text="商品错发"></td>
                <td th:if="${refund.refundreason==6}"  th:text="收到商品破损"></td>
                <td th:if="${refund.refundreason==7}"  th:text="其他"></td>
                </td>
            </tr>
        </table>
    </div>

    <!-- Table -->
    <h3>退款操作记录</h3>
    <hr/>
    <table class="table table-striped table-bordered table-hover dataTables-example">
        <thead>
        <tr>
            <td>退货单号</td>
            <td>订单编号</td>
            <td>应退金额</td>
            <td>实退金额</td>
            <td>申请时间</td>
            <td>退款状态</td>
            <td>描述</td>
        </tr>
        <tr>
            <td th:text="${refund.refundorderno}"></td>
            <td th:text="${refund.orderno}"></td>
            <td th:text="${refund.refundmoney}"></td>
            <td th:text="${refund.paymoney}"></td>
            <td th:text="${#dates.format(refund.createtime,'yyyy-MM-dd')}"></td>
            <td th:if="${refund.refundmoneystatus==0}"  th:text="未退款"></td>
            <td th:if="${refund.refundmoneystatus==1}"  th:text="退款成功"></td>
            <td th:if="${refund.refundmoneystatus==2}"  th:text="退款失败"></td>
            <td th:if="${refund.auditdescription=='null'}"  th:text="null"></td>
            <td th:if="${refund.auditdescription!='null'}"  th:text="${refund.auditdescription}"></td>
        </tr>
        </thead>
    </table>
</div>
<button type="button" onclick="window.location.href='wl_order_refund_getAll'" class="btn btn-default">返回</button>
</body>
</html>